<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/templates/_template.xhtml">

        <ui:define name="titulo">

            <h3>Contas a Receber</h3>

        </ui:define>

        <ui:define name="conteudo">

            <p:growl autoUpdate="true" />
            <h:form>

                <p:messages id="messages" autoUpdate="true" />

                <p:fieldset legend="Dados da Aperação 02" styleClass="fieldsetSms">
                    <h:panelGrid columns="8">

                        <h:outputLabel value="Cliente" for="cliente" styleClass="rotulos" />
                        <p:selectOneMenu id="cliente" value="#{enderecoBean.endereco.uf}">
                            <f:selectItem itemLabel="Cliente 01" itemValue="Cliente 01" />  
                        </p:selectOneMenu>
                        <h:outputLabel value="Taxas:" for="taxas" styleClass="rotulos" />
                        <p:selectOneMenu id="taxas" value="#{enderecoBean.endereco.uf}">
                            <f:selectItem itemLabel="1.5" itemValue="1.5" />  
                            <f:selectItem itemLabel="1.8" itemValue="1.8" />  
                            <f:selectItem itemLabel="2.5" itemValue="2.5" /> 
                        </p:selectOneMenu>
                          <h:outputLabel value="Documento:" for="doc" styleClass="rotulos" />
                         <p:selectOneMenu id="doc" value="#{enderecoBean.endereco.uf}">
                            <f:selectItem itemLabel="TED" itemValue="TED" />  
                         </p:selectOneMenu>

                        <h:outputLabel value="Valor:" for="valor" styleClass="rotulos"/>
                        <p:inputMask id="valor" label="cep" value="#{enderecoBean.endereco.cep}"  mask="99.999-999" />


                    </h:panelGrid>
                    <br />
                    <p:commandButton value="Confirmar" action="#{clienteBean.salvar}" />
                    <p:commandButton value="Consultar" action="#{clienteBean.consultar}"  immediate="true" />
                    <p:commandButton value="Cancelar" action="#{smsBean.formPrincipal()}" immediate="true" />
                </p:fieldset>

            </h:form>
        </ui:define>
    </ui:composition>

</html>